<?php
class Conf_shop extends Model {

    function Conf_shop()
    {
        parent::Model();
    }

    function get_items()
    {
    	$sql = "SELECT * FROM conf_shop";
    	$query = $this->db->query($sql);
    	
    	return $query->result();
    }

	function get_shop($shopid)
	{
		$shop = false;
		$query = $this->db->query("SELECT * FROM conf_shop WHERE shopid=$shopid");
		foreach($query->result() as $r)
		{
			$shop = $r;
			break;
		}
		return $shop;
	}
}
?>
